package com.eastcom.groovy.context

import com.eastcom.groovy.config.ServerPath
import com.eastcom.groovy.tools.db.DbInfo;

import java.util.concurrent.ConcurrentHashMap;

public class ServerContext {
	public static ServerPath serverPath;
	public static Map<String, DbInfo> dbMap = new ConcurrentHashMap<String, DbInfo>();
	private static final ThreadLocal<String> contextHolder = new ThreadLocal<String>();  
	 public static void setCustomerType(String customerType) {  
	     contextHolder.set(customerType);  
	 }  
	 public static String getCustomerType() {  
	     return contextHolder.get();  
	 }  
	 public static void clearCustomerType() {  
	     contextHolder.remove();  
	 }  
}
